﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TaxiOnline.DAL.Abstract;

namespace TaxiOnline.DAL.Models
{
    public class FastOrder: Entity
    {
       
        public string Telephone { get; set; }
        public Address Departure { get; set; }
        public Driver Driver { get; set; }
        public OrderState State { get; set; }

        public FastOrder() {
            Id = -1;
            Telephone = String.Empty;
            Departure = new Address();
            Driver = new Driver();
            State = new OrderState();
        }

        public FastOrder(int id, string telephone,
            Address departure, Driver driver, OrderState state) {
            Id = id;
            Telephone = telephone;
            Departure = departure;
            Driver = driver;
            State = state;
        }
    }
}
